import Layout from '@/layout'
// 动态路由
export const asyncRoutes = [
  {
    path: '/department',
    component: Layout,
    children: [
      {
        path: '',
        name: 'department',
        component: () => import('@/views/Department/index.vue'),
        meta: { title: '组织架构', icon: 'tree' }
      }
    ]
  },
  {
    path: '/setting',
    component: Layout,
    children: [
      {
        path: '',
        name: 'setting',
        component: () => import('@/views/Setting/index.vue'),
        meta: { title: '角色管理', icon: 'setting' }
      }
    ]
  },
  {
    path: '/employee',
    component: Layout,
    children: [
      {
        path: '',
        name: 'employee',
        component: () => import('@/views/Employee/index.vue'),
        meta: { title: '员工管理', icon: 'people' }
      }
    ]
  },
  {
    path: '/permission',
    component: Layout,
    children: [
      {
        path: '',
        name: 'permission',
        component: () => import('@/views/Permission/index.vue'),
        meta: { title: '权限点管理', icon: 'lock' }
      }
    ]
  },
  {
    path: '/salary',
    component: Layout,
    children: [
      {
        path: '',
        name: 'salary',
        component: () => import('@/views/Salary/index'),
        meta: { title: '工资管理', icon: 'money' }
      }
    ]
  }
]
